package com.dubito.composewidgets.ui.bottomnavigation

import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.dubito.composewidgets.ui.bottomnavigation.destinations.BookmarksScreen
import com.dubito.composewidgets.ui.bottomnavigation.destinations.HomeScreen
import com.dubito.composewidgets.ui.bottomnavigation.destinations.NotificationScreen

/**
 * author: LiLiang
 * createTime: 2022/10/5-10:22
 * remark:
 **/

@Composable
fun NavGraph(
    modifier: Modifier = Modifier,
    navHostController: NavHostController = rememberNavController(),
    startDestination: String = Destinations.HOME
) {
    NavHost(navController = navHostController, startDestination = startDestination, modifier = modifier) {
        composable(Destinations.HOME) {
            HomeScreen()
        }
        composable(Destinations.BOOKMARKS) {
            BookmarksScreen()
        }
        composable(Destinations.NOTIFICATION) {
            NotificationScreen()
        }
    }
}